﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001DD RID: 477
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeStoryStageTertinggi : IMessage<ChallengeStoryStageTertinggi>, IMessage, IEquatable<ChallengeStoryStageTertinggi>, IDeepCloneable<ChallengeStoryStageTertinggi>, IBufferMessage
	{
		// Token: 0x1700064A RID: 1610
		// (get) Token: 0x06001595 RID: 5525 RVA: 0x0003D85B File Offset: 0x0003BA5B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeStoryStageTertinggi> Parser
		{
			get
			{
				return ChallengeStoryStageTertinggi._parser;
			}
		}

		// Token: 0x1700064B RID: 1611
		// (get) Token: 0x06001596 RID: 5526 RVA: 0x0003D862 File Offset: 0x0003BA62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeStoryStageTertinggiReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700064C RID: 1612
		// (get) Token: 0x06001597 RID: 5527 RVA: 0x0003D874 File Offset: 0x0003BA74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeStoryStageTertinggi.Descriptor;
			}
		}

		// Token: 0x06001598 RID: 5528 RVA: 0x0003D87B File Offset: 0x0003BA7B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryStageTertinggi()
		{
		}

		// Token: 0x06001599 RID: 5529 RVA: 0x0003D890 File Offset: 0x0003BA90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryStageTertinggi(ChallengeStoryStageTertinggi other) : this()
		{
			this.buffTwo_ = other.buffTwo_;
			this.scoreId_ = other.scoreId_;
			this.level_ = other.level_;
			this.buffOne_ = other.buffOne_;
			this.battleRecordStars_ = other.battleRecordStars_;
			this.lineupList_ = other.lineupList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600159A RID: 5530 RVA: 0x0003D901 File Offset: 0x0003BB01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryStageTertinggi Clone()
		{
			return new ChallengeStoryStageTertinggi(this);
		}

		// Token: 0x1700064D RID: 1613
		// (get) Token: 0x0600159B RID: 5531 RVA: 0x0003D909 File Offset: 0x0003BB09
		// (set) Token: 0x0600159C RID: 5532 RVA: 0x0003D911 File Offset: 0x0003BB11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffTwo
		{
			get
			{
				return this.buffTwo_;
			}
			set
			{
				this.buffTwo_ = value;
			}
		}

		// Token: 0x1700064E RID: 1614
		// (get) Token: 0x0600159D RID: 5533 RVA: 0x0003D91A File Offset: 0x0003BB1A
		// (set) Token: 0x0600159E RID: 5534 RVA: 0x0003D922 File Offset: 0x0003BB22
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScoreId
		{
			get
			{
				return this.scoreId_;
			}
			set
			{
				this.scoreId_ = value;
			}
		}

		// Token: 0x1700064F RID: 1615
		// (get) Token: 0x0600159F RID: 5535 RVA: 0x0003D92B File Offset: 0x0003BB2B
		// (set) Token: 0x060015A0 RID: 5536 RVA: 0x0003D933 File Offset: 0x0003BB33
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17000650 RID: 1616
		// (get) Token: 0x060015A1 RID: 5537 RVA: 0x0003D93C File Offset: 0x0003BB3C
		// (set) Token: 0x060015A2 RID: 5538 RVA: 0x0003D944 File Offset: 0x0003BB44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffOne
		{
			get
			{
				return this.buffOne_;
			}
			set
			{
				this.buffOne_ = value;
			}
		}

		// Token: 0x17000651 RID: 1617
		// (get) Token: 0x060015A3 RID: 5539 RVA: 0x0003D94D File Offset: 0x0003BB4D
		// (set) Token: 0x060015A4 RID: 5540 RVA: 0x0003D955 File Offset: 0x0003BB55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BattleRecordStars
		{
			get
			{
				return this.battleRecordStars_;
			}
			set
			{
				this.battleRecordStars_ = value;
			}
		}

		// Token: 0x17000652 RID: 1618
		// (get) Token: 0x060015A5 RID: 5541 RVA: 0x0003D95E File Offset: 0x0003BB5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ChallengeLineupList> LineupList
		{
			get
			{
				return this.lineupList_;
			}
		}

		// Token: 0x060015A6 RID: 5542 RVA: 0x0003D966 File Offset: 0x0003BB66
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeStoryStageTertinggi);
		}

		// Token: 0x060015A7 RID: 5543 RVA: 0x0003D974 File Offset: 0x0003BB74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeStoryStageTertinggi other)
		{
			return other != null && (other == this || (this.BuffTwo == other.BuffTwo && this.ScoreId == other.ScoreId && this.Level == other.Level && this.BuffOne == other.BuffOne && this.BattleRecordStars == other.BattleRecordStars && this.lineupList_.Equals(other.lineupList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060015A8 RID: 5544 RVA: 0x0003DA04 File Offset: 0x0003BC04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BuffTwo != 0U)
			{
				num ^= this.BuffTwo.GetHashCode();
			}
			if (this.ScoreId != 0U)
			{
				num ^= this.ScoreId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.BuffOne != 0U)
			{
				num ^= this.BuffOne.GetHashCode();
			}
			if (this.BattleRecordStars != 0U)
			{
				num ^= this.BattleRecordStars.GetHashCode();
			}
			num ^= this.lineupList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060015A9 RID: 5545 RVA: 0x0003DAB5 File Offset: 0x0003BCB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060015AA RID: 5546 RVA: 0x0003DABD File Offset: 0x0003BCBD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060015AB RID: 5547 RVA: 0x0003DAC8 File Offset: 0x0003BCC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BuffTwo != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.BuffTwo);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Level);
			}
			if (this.BuffOne != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.BuffOne);
			}
			if (this.BattleRecordStars != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.BattleRecordStars);
			}
			this.lineupList_.WriteTo(ref output, ChallengeStoryStageTertinggi._repeated_lineupList_codec);
			if (this.ScoreId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.ScoreId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060015AC RID: 5548 RVA: 0x0003DB88 File Offset: 0x0003BD88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BuffTwo != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffTwo);
			}
			if (this.ScoreId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScoreId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.BuffOne != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffOne);
			}
			if (this.BattleRecordStars != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BattleRecordStars);
			}
			num += this.lineupList_.CalculateSize(ChallengeStoryStageTertinggi._repeated_lineupList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060015AD RID: 5549 RVA: 0x0003DC3C File Offset: 0x0003BE3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeStoryStageTertinggi other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BuffTwo != 0U)
			{
				this.BuffTwo = other.BuffTwo;
			}
			if (other.ScoreId != 0U)
			{
				this.ScoreId = other.ScoreId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.BuffOne != 0U)
			{
				this.BuffOne = other.BuffOne;
			}
			if (other.BattleRecordStars != 0U)
			{
				this.BattleRecordStars = other.BattleRecordStars;
			}
			this.lineupList_.Add(other.lineupList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060015AE RID: 5550 RVA: 0x0003DCD9 File Offset: 0x0003BED9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060015AF RID: 5551 RVA: 0x0003DCE4 File Offset: 0x0003BEE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 8U)
					{
						this.BuffTwo = input.ReadUInt32();
						continue;
					}
					if (num == 16U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.BuffOne = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.BattleRecordStars = input.ReadUInt32();
						continue;
					}
					if (num == 90U)
					{
						this.lineupList_.AddEntriesFrom(ref input, ChallengeStoryStageTertinggi._repeated_lineupList_codec);
						continue;
					}
					if (num == 104U)
					{
						this.ScoreId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040008E4 RID: 2276
		private static readonly MessageParser<ChallengeStoryStageTertinggi> _parser = new MessageParser<ChallengeStoryStageTertinggi>(() => new ChallengeStoryStageTertinggi());

		// Token: 0x040008E5 RID: 2277
		private UnknownFieldSet _unknownFields;

		// Token: 0x040008E6 RID: 2278
		public const int BuffTwoFieldNumber = 1;

		// Token: 0x040008E7 RID: 2279
		private uint buffTwo_;

		// Token: 0x040008E8 RID: 2280
		public const int ScoreIdFieldNumber = 13;

		// Token: 0x040008E9 RID: 2281
		private uint scoreId_;

		// Token: 0x040008EA RID: 2282
		public const int LevelFieldNumber = 2;

		// Token: 0x040008EB RID: 2283
		private uint level_;

		// Token: 0x040008EC RID: 2284
		public const int BuffOneFieldNumber = 6;

		// Token: 0x040008ED RID: 2285
		private uint buffOne_;

		// Token: 0x040008EE RID: 2286
		public const int BattleRecordStarsFieldNumber = 10;

		// Token: 0x040008EF RID: 2287
		private uint battleRecordStars_;

		// Token: 0x040008F0 RID: 2288
		public const int LineupListFieldNumber = 11;

		// Token: 0x040008F1 RID: 2289
		private static readonly FieldCodec<ChallengeLineupList> _repeated_lineupList_codec = FieldCodec.ForMessage<ChallengeLineupList>(90U, ChallengeLineupList.Parser);

		// Token: 0x040008F2 RID: 2290
		private readonly RepeatedField<ChallengeLineupList> lineupList_ = new RepeatedField<ChallengeLineupList>();
	}
}
